package com.sll.hosptials.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sll.hosptials.controller.req.DictInfoPageReq;
import com.sll.hosptials.controller.req.DictReq;
import com.sll.hosptials.model.DictInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author shaolulu
* @description 针对表【dict_info(数据字典)】的数据库操作Service
* @createDate 2024-01-04 15:46:55
*/
public interface DictInfoService extends IService<DictInfo> {

    /**
     * 字典分页
     * @param req
     * @return
     */
    Page<DictInfo> page(DictInfoPageReq req);

    /**
     * 根据查询条件获取树结构
     * 查询条件：字典类型code/id、字典code、字典名、字典id
     * @param dictReq
     * @return
     */
    List<DictInfo> dictTreeList(DictReq dictReq);



}
